import request from "@/utils/request";
import { download, downloadOfGet } from "@/utils/request";

export function inferenceservice_modelview(params) {
  return request({
    baseURL: process.env.VUE_APP_AIR_API,
    url: '/inferenceservice_modelview/api/',
    method: 'get',
    params,
    withCredentials: true,
  })
}


// 加载数据库数据
export function getList(params) {
  return request({
    url: "/forecast/forecastModelBasic/findInitDataByParam",
    method: "get",
    params,
  });
}

// 导入
export function importData(params) {
  return request({
    url: "/health/cruxDevice/findCrudDeviceList",
    method: "get",
    params,
  });
}
// 预测模型生产

export function createForecastModelData(params) {
  return request({
    url: "/forecast/forecastModelBasic/createForecastModelData",
    method: "get",
    params,
  });
}
// 预测模型保存

export function forecastModelBasic(data) {
  return request({
    url: "/forecast/forecastModelBasic",
    method: "post",
    data,
  });
}export function createForecastModelDataNonLine(data) {
  return request({
    url: "forecast/forecastModelBasic/createForecastModelDataNonLine",
    method: "post",
    data,
  });
}

// 弹窗-导入

export function importTableData(data) {
  return request({
    url: "/forecast/forecastModelBasic/importTableData",
    method: "post",
    data,
  });
}

// csv导入

export function importInitData(data) {
  return request({
    url: "/forecast/forecastModelBasic/importInitData",
    method: "post",
    data,
  });
}
